package com.wenson.behavior.mediator;

/**
 * @ClassName: ChatClient
 * @Author: luowangcheng
 * @Date: 2024/6/16 9:40
 * @Description:
 */
public class ChatClient {
    public static void main(String[] args) {
        ChatRoom charRoom = new ChatRoom("设计模式");
        User user3 = new User("张三");
        User user4 = new User("李四");
        User user5 = new User("王五");

//        user3.login(charRoom);
//        user4.login(charRoom);
//
//        user3.talk("你好，四兄弟，就你一个在啊？");
//
//        user4.talk("是我，三哥。");
//        user5.login(charRoom);
//        user3.talk("瞧，老五来了。");

    }
}
